package cn.lixufeng.org.domain;

import cn.lixufeng.basic.domain.BaseDomain;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class Department extends BaseDomain {

    private String sn;
    private String name;
    private String dirPath;
    private Integer state;
    private Long manager_id;

    // 引用属性
    private Employee manager;
    private Long parent_id;
    private Department parent;

    // 部门层级树的子部门
    private List<Department> children = new ArrayList<>();

}
